/*
* ECARX Technology Limited is the owner of the copyright and the trade secret of this software.
* Without permission, no one has the right to obtain, disclose or use this software in any way.
*/

package ecarx.xsf.notificationcenter.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import android.util.Log;


/**
 * FileName: BootReceiver.java <br>
 * Description : 开机广播，属于分段广播接入第二档,正常开机广播 10s 后才能收到开机广播 <br>
 * Create Time: 2020/09/11 <br>
 * Update Time: 2021/8/4 11:32 <br>
 *
 * @since 1.0.0
 */
public class BootReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if (!TextUtils.isEmpty(intent.getAction())
                && intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
            Log.i("BootReceiver", "start service");
//            Intent i = new Intent();
//            i.setComponent(new ComponentName(context, ECarxNotificationListenerService.class));
//            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
//                context.startService(i);
//            } else {
//                context.startService(i);
//            }
        }
    }
}
